<?php
	$arrResult = $this->arrResult;
?>
<div id="doc_content">
	<div class="csstab"></div>
	<div class="doc document">
		<h2><?php echo $arrResult['TD02'];?></h2>
		<div class="content">
			<div class="fullthumb">
				<?=$this->viewdocument;?>
			</div>
			<div class="doc-info">
				<!-- <p>Nguồn: <?=?> </p> -->
				<p>Người tạo: <?php echo $arrResult['TD05'];?> </p>
				<p>Ngày gửi: </p>
				<p>Dung lượng: </p>
				<p>Số lượt tải: </p>
				<p>Số lượt thích: </p>
			</div>
		</div>
	</div>
</div>
<form action="" method="POST" id="viewData" name="viewData" autocomplete="off">
	<div id="form-content">
		<?php echo $this->formHidden('PkComment','',null); ?>
        <div>
			<div class="search-container info_general">
			</div>
			<div class = "tile_l2">Tư liệu liên quan</div>			
				<fieldset class="children">
					<legend class="smallLegend">Tài liệu</legend>
					<div class="filmstripframe">
						<?=$this->viewdocument;?>
					</div>
				</fieldset>
			<div>
				<textarea class="textarea_tab input3" rows="2" action="notselected" name="RC06" id="RC06" onfocus="change('selected'); empty();" onblur="change('notselected'); empty();">--Ý kiến của bạn--</textarea>
			</div>
			<div class="button-container" style="padding-right: 10px;text-align: right;">
				<input id = "updatecmm" type="button" value="Gửi ý kiến" class="link-button updatecmm" style="display:inline">
				<input id = "deletecmmbtn" type="button" value="Xóa ý kiến" class="link-button deletecmmbtn" style="display:inline">
			</div>
			<div id = "table-comment"></div>
			<div class="button-container">
				<input id = "back"  type="button" value="Quay lại" class="link-button clback" style="display:inline">
			</div>  
		</div>
	</div>
</form>	
<script type="text/javascript">
	var dirxml = baseUrl+'/xml/view/search/searchcomment.xml';
	if(typeof(xmlsearchcomment) === 'undefined' ){
		xmlsearchcomment = new efyXml(dirxml,'mySearchIndex');
	}
	function empty() {
 	 	var ta = document.getElementById("RC06");
 	 	ta.focus();
	  	if ($('#RC06').attr("action") == "notselected" && ta.value == "") ta.value = "--Ý kiến của bạn--";
	  	if ($('#RC06').attr("action") == "selected")
	  		if(ta.value == "--Ý kiến của bạn--") ta.value = "";
	}
	function change(cls) {
	  	$('#RC06').attr('action',cls);
	}
</script>